package com.storyroad.responseClasses;

/**
 * Fields of this class are used to store information about a story. Instances of this class are sent to the front-end
 * to be used when displaying a story on a map, using pins. Accumulating all the data in an object facilitates transfer of data
 * as well as receiving and processing it. 
 */
public class MapPins {
	private int s_id;
	private String title;
	private double rating;
	private double x_coord;
	private double y_coord;
	private String tags;

	public MapPins(int story_id, String title, double rating, double x_coordinate, double y_coordinate, String tags) {
		s_id = story_id;
		x_coord = x_coordinate;
		y_coord = y_coordinate;
		this.title = title;
		this.rating = rating;
		this.setTags(tags);
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public double getRating() {
		return rating;
	}

	public void setRating(double rating) {
		this.rating = rating;
	}

	public int getS_id() {
		return s_id;
	}

	public void setS_id(int s_id) {
		this.s_id = s_id;
	}

	public double getX_coord() {
		return x_coord;
	}

	public void setX_coord(double x_coord) {
		this.x_coord = x_coord;
	}

	public double getY_coord() {
		return y_coord;
	}

	public void setY_coord(double y_coord) {
		this.y_coord = y_coord;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}
}
